projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e89bf3
)
widget: Add transfer annotation for gtk_widget_set_window
author
Jürg Billeter
<j@bitron.ch>
Thu, 11 Aug 2011 08:21:10 +0000
(10:21 +0200)
committer
Jürg Billeter
<j@bitron.ch>
Thu, 11 Aug 2011 10:35:46 +0000
(12:35 +0200)
gtk_widget_set_window does not add any reference to the window and
unrealize will destroy it.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 95422621b8d274e3bf65af192441c397211c5767..8f5d6ff263f9a131fe767782798b71ed818d5c92 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-14038,7
+14038,7
@@
gtk_widget_get_requisition (GtkWidget *widget,
/**
* gtk_widget_set_window:
* @widget: a #GtkWidget
- * @window: a #GdkWindow
+ * @window:
(transfer full):
a #GdkWindow
*
* Sets a widget's window. This function should only be used in a
* widget's #GtkWidget::realize implementation. The %window passed is